package com.zzj.ecology.thirdpart.ali.oss;

import com.aliyun.oss.OSSClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.io.File;

@Component
public class OssUploader {

    @Autowired
    private OSSClient ossClient;

    public String upload() {
        ossClient.putObject("fapd-remote-test", "2020-06-10/", new File("E:\\syukaww.JPG"));

        return "";
    }
}
